package com.zmn.plat.services.impl.orderconfig.oderstock.sp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zmn.plat.model.entity.orderconfig.orderstock.sp.SpConfigClose;
import com.zmn.plat.model.entity.orderconfig.orderstock.sp.SpConfigCloseQuery;
import com.zmn.plat.persistence.interfaces.orderconfig.orderstock.sp.SpConfigCloseDao;
import com.zmn.plat.services.interfaces.orderconfig.oderstock.sp.SpConfigCloseService;

import lombok.extern.slf4j.Slf4j;

/**
 * 描述: 服务商库存配置：关闭日期基础接口实现类
 *
 * @author tanghongjun
 * @since 2020-03-17 11:23:43
 **/
@Slf4j
@Service
public class SpConfigCloseServiceImpl implements SpConfigCloseService {

    private static final String TAG = "服务商库存配置：关闭日期基础服务接口";

    @Resource
    private SpConfigCloseDao spConfigCloseDao;

    @Override
    public SpConfigClose findByKey(Integer id) {
        return spConfigCloseDao.findByKey(id);
    }

    @Override
    public List<SpConfigClose> listByConfigIdList(List<Integer> configIdList) {
        return spConfigCloseDao.listByConfigIdList(configIdList);
    }

    @Override
    public List<SpConfigClose> listPageByQuery(SpConfigCloseQuery query) {
        return spConfigCloseDao.listPageByQuery(query);
    }

    @Override
    public List<SpConfigClose> listByQuery(SpConfigCloseQuery query) {
        return spConfigCloseDao.listByQuery(query);
    }

    @Override
    public Integer countByQuery(SpConfigCloseQuery query) {
        return spConfigCloseDao.countByQuery(query);
    }

    @Override
    public Integer updateByKey(SpConfigClose spConfigClose) {
        return spConfigCloseDao.updateByKey(spConfigClose);
    }

    @Override
    public Integer insert(SpConfigClose spConfigClose) {
        return spConfigCloseDao.insert(spConfigClose);
    }

    @Override
    public Integer insertBatch(List<SpConfigClose> list) {
        return spConfigCloseDao.insertBatch(list);
    }

    @Override
    public Integer deleteByKey(Integer id) {
        return spConfigCloseDao.deleteByKey(id);
    }
}